package com.ruoyi.eims.store.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eims.store.mapper.InboundOrderDetailsMapper;
import com.ruoyi.eims.store.domain.InboundOrderDetails;
import com.ruoyi.eims.store.service.IInboundOrderDetailsService;

/**
 * 采购入库管理Service业务层处理
 * 
 * @author hp
 * @date 2023-02-05
 */
@Service
public class InboundOrderDetailsServiceImpl implements IInboundOrderDetailsService 
{
    @Autowired
    private InboundOrderDetailsMapper inboundOrderDetailsMapper;

    /**
     * 查询采购入库管理
     * 
     * @param id 采购入库管理主键
     * @return 采购入库管理
     */
    @Override
    public InboundOrderDetails selectInboundOrderDetailsById(Long id)
    {
        return inboundOrderDetailsMapper.selectInboundOrderDetailsById(id);
    }

    /**
     * 查询采购入库管理列表
     * 
     * @param inboundOrderDetails 采购入库管理
     * @return 采购入库管理
     */
    @Override
    public List<InboundOrderDetails> selectInboundOrderDetailsList(InboundOrderDetails inboundOrderDetails)
    {
        return inboundOrderDetailsMapper.selectInboundOrderDetailsList(inboundOrderDetails);
    }

    /**
     * 新增采购入库管理
     * 
     * @param inboundOrderDetails 采购入库管理
     * @return 结果
     */
    @Override
    public int insertInboundOrderDetails(InboundOrderDetails inboundOrderDetails)
    {
        return inboundOrderDetailsMapper.insertInboundOrderDetails(inboundOrderDetails);
    }

    /**
     * 修改采购入库管理
     * 
     * @param inboundOrderDetails 采购入库管理
     * @return 结果
     */
    @Override
    public int updateInboundOrderDetails(InboundOrderDetails inboundOrderDetails)
    {
        return inboundOrderDetailsMapper.updateInboundOrderDetails(inboundOrderDetails);
    }

    /**
     * 批量删除采购入库管理
     * 
     * @param ids 需要删除的采购入库管理主键
     * @return 结果
     */
    @Override
    public int deleteInboundOrderDetailsByIds(Long[] ids)
    {
        return inboundOrderDetailsMapper.deleteInboundOrderDetailsByIds(ids);
    }

    /**
     * 删除采购入库管理信息
     * 
     * @param id 采购入库管理主键
     * @return 结果
     */
    @Override
    public int deleteInboundOrderDetailsById(Long id)
    {
        return inboundOrderDetailsMapper.deleteInboundOrderDetailsById(id);
    }
}
